package com.sosee.cgfw.camera;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.sosee.cgfw.R;

/**
 * Created by Thinkpad on 2016/3/4.
 */
public class PicFragment extends Fragment {

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View v=null;
        v=inflater.inflate(R.layout.fragment_pic,null);
        String falg=getArguments().getString("flag");
        if("0".equals(falg)){
            v.setBackgroundResource(R.drawable.zipaikuang1);
        }else if("1".equals(falg)){
            v.setBackgroundResource(R.drawable.zipaikuang2);
        }else{
            v.setBackgroundResource(R.drawable.border3);
        }
        return v;
    }
}
